package in.muton.edushare.jobs;

import org.apache.cayenne.access.DataContext;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.edushare.common.dao.AssignmentsDAO;
import com.edushare.common.orm.CayenneORMInterface;

public class AssignemntUpdaterJob implements EduShareJob {

	public void execute(JobExecutionContext context) throws JobExecutionException {
		CayenneORMInterface ormIntf =  new CayenneORMInterface();
		ormIntf.setDataContext(DataContext.createDataContext());
		new AssignmentsDAO(ormIntf)
				.updateAllAssignmentStatus();
		
	}

}
